﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PreeRegisterModel
{
    public class NotPayRequestModel
    {
        /// <summary>
        /// 主索引模式：1为主索引模式。0为非主索引模式
        /// </summary>
        public string indextype { get; set; }
        /// <summary>
        /// 诊疗ID，当indexType＝1时必填
        /// </summary>
        public string cpatientcode { get; set; }
        /// <summary>
        /// 订单ID，当indexType＝0时必填
        /// </summary>
        public string orderid { get; set; }
        /// <summary>
        /// 缴费类型1：挂号  2：处方  3：检验  4：处置  5：检查 当indexType＝0时必填
        /// </summary>
        public string cateid { get; set; }
        /// <summary>
        /// 1：查询订单状态；2：查询并支付
        /// </summary>
        public string opcode { get; set; }
    }

    public class NotPayResponseModel
    {
        public string code { get; set; }
        public string msg { get; set; }

        /// <summary>
        /// 待缴费信息
        /// </summary>
        public List<NotPayResponseItemModel> items { get; set; }
    }

    public class NotPayResponseItemModel
    {
        /// <summary>
        /// 总院、分院标识
        /// </summary>
        public string hospitalcode { get; set; }

        /// <summary>
        /// 患者姓名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string gender { get; set; }
        /// <summary>
        /// 支付状态1：待支付  2：支付中  3：已支付  4：支付失败
        /// </summary>
        public string state { get; set; }
        /// <summary>
        /// 开单|挂号科室
        /// </summary>
        public string dname { get; set; }
        /// <summary>
        /// 开单|挂号医师
        /// </summary>
        public string docname { get; set; }
        /// <summary>
        /// 就诊时间|开单时间
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 缴费类型1：挂号  2：处方  3：检验  4：处置  5：检查
        /// </summary>
        public string cateid { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 价格，单位：元
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 订单ID
        /// </summary>
        public string orderid { get; set; }
    }

    public class PayOrderRequestModel
    {
        /// <summary>
        /// 1:查询预约记录 2:查询支付记录
        /// </summary>
        public string opcode { get; set; }
        /// <summary>
        /// 订单ID，当indexType＝0时必填
        /// </summary>
        public string orderid { get; set; }
    }

    public class PayOrderResponseModel
    {
        public string price;
        public string price2;
        public string ofee;

        /// <summary>
        /// 支付结果 HIS返回的支付结果原始报文
        /// </summary>
        public string response { get; set; }

        /// <summary>
        /// 预约挂号 患者姓名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 预约挂号 患者姓名
        /// </summary>
        public string oid { get; set; }
        /// <summary>
        /// 预约挂号 状态
        /// </summary>
        public string state { get; set; }
        /// <summary>
        /// 预约挂号 患者手机号
        /// </summary>
        public string tel { get; set; }
        /// <summary>
        /// 预约挂号 患者身份证号
        /// </summary>
        public string card { get; set; }
        /// <summary>
        /// 预约挂号 排班ID
        /// </summary>
        public string wid { get; set; }
        /// <summary>
        /// 预约挂号 号源ID
        /// </summary>
        public string iid { get; set; }
        /// <summary>
        /// 预约挂号 剩余可预约数
        /// </summary>
        public string cout { get; set; }
        /// <summary>
        /// 预约挂号 当天剩余可预约数
        /// </summary>
        public string dcount { get; set; }
    }
}
